<template>
  <audio :src="src" @play="play" ref="audio" controls="controls"></audio>
</template>

<script>
export default {
  props: {
    src: {
      type: String,
      required: true
    }
  },
  methods: {
    play () {
      this.$emit('start')
    },
    pause () {
      this.$refs['audio'].pause()
    }
  }
}
</script>

<style>

</style>